package com.hx.jvm.proxy.jdk;

import java.io.IOException;

public class Client {

    public static void main(String[] args) throws IOException {
        // 这里传入的是实际的代理对象 new Hello()
        IHello hello = (IHello) new DynamicProxy().bind(new Hello());
        hello.sayHello();


        // 悬停 查看生成的代理对象
        System.out.println(hello.getClass());
        System.in.read();

    }

}
